package com.yanqu.road.server.cmd.activity.qixi;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.QixiProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.QixiCrossMgr.CrossQixiMgr;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C_QIXI_LOGIN_GET_FLOWER_BROADCAST, desc = "七夕活动 登录请求鲜花广播")
public class CrossLoginGetBroadcastCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        QixiProto.CrossLoginGetFlowerBroadcastReqMsg reqMsg = QixiProto.CrossLoginGetFlowerBroadcastReqMsg.parseFrom(packet.getBytes());
        CrossQixiMgr.loginGetBroadcastMsg(reqMsg.getActivityId(), serverId, packet.getPlayerId(), reqMsg.getExcludeIdList());
    }

    @Override
    public void sendData() {

    }
}
